/**
 * 分割线组件
 * @author: zxy
 * @update: 2016-10-20
 */

import React, {PropTypes} from 'react';
import styles from './CommonSeparated.less';

const CommonSeparated = ({
	title,
	marginLeft,
}) => {
	
		marginLeft = `${marginLeft}px` || 0;
	
    return (
			<div style={{marginLeft: marginLeft}}>
				<div className={styles.box}>
					<div className={styles.blue}></div>
					<div className={styles.title}>{title}</div>
			 </div>
			</div>
    );
};

CommonSeparated.propTypes = {
	title: PropTypes.any,
};
export default CommonSeparated;